//
//  BaseTableViewController.swift
//  SLQuickReader
//
//  Created by ALin on 2017/8/10.
//  Copyright © 2017年 ALin. All rights reserved.
//

import UIKit

class BaseTableViewController: BaseViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        
        automaticallyAdjustsScrollViewInsets = false
        
        view.addSubview(tableView)
        
        tableView.snp.makeConstraints {
            $0.edges.equalTo(view)
        }
        
        customSetupTabelView()
    }
    
    func customSetupTabelView() {}
    
    // MARK:- lazy loding
    lazy var tableView: UITableView = {
        let tab = UITableView().then{
//            $0.frame = self.view.bounds
            $0.emptyFooter()
            $0.separatorStyle = .none
            $0.backgroundColor = UIColor.groupTableViewBackground
            $0.contentInset = UIEdgeInsets(top: 64, left: 0, bottom: 0, right: 0)
        }
        return tab
    }()
}
